import { IsArray, IsNumber, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { PriceEntity } from '../entities/price.entity';

export class CreateProcessDto {
  @ApiProperty()
  @IsNumber()
  index: number;
  @ApiProperty()
  @IsString()
  name: string;

  @ApiProperty()
  @IsArray()
  prices: PriceEntity[];
}
